Session has been expired. Please login again.
Prepare for your Interview today!
using System; namespace Console1 { class Class1 { static void Main(string[] args) { ParamsMethod(1,"example"); ParamsMethod(1,2,3,4); Console.ReadLine(); } static void ParamsMethod(params object[] list) { foreach (object o in list) { Console.WriteLine(o.ToString()); } } } }
An overloaded method has multiple signatures that are different.
Recursion is when a method calls itself.
A constructor performs initialisation for an object (including the struct type) or class.
Yes
Most helpful rated by users: